JETTY_HOME=/soft/jetty-distribution-8.1.17.v20150415/
JETTY_CONF=$JETTY_HOME/etc
JETTY_LOGS=$JETTY_HOME/logs
APP_CODE=IomUnicom-WEB1
export JETTY_HOME
export JETTY_CONF
export JETTY_LOGS
export JAVA_HOME=/jdk/jdk1.7.0_80
MEM_ARGS="-XX:MaxPermSize=256m -Xms2048m -Xmx2048m "
DUMP_ARGS=" -XX:HeapDumpPath=dumpfile.hprof -XX:+HeapDumpOnOutOfMemoryError"
JMX_ARGS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=19883 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false "

nohup java -DSTOP.PORT=18009 -DPGM_ID=${APP_CODE} ${JMX_ARGS} -DSTOP.KEY=secret ${MEM_ARGS} ${DUMP_ARGS} -jar start.jar > logs/jetty.log 2>&1 &

